<!--
 * @Author: 徐建辰
 * @Date: 2022-02-12 10:33:51
 * @LastEditTime: 2022-02-14 09:05:12
 * @LastEditors: 徐建辰
 * @Description: 二次封装vant中的Button组件
-->
<template>
  <van-button 
    :type="type" 
    :text="text"
    :icon="icon"
    :color="color"
    :disabled="disabled"
    :plain="plain"
    :round="round"
    :loading="loading"
    size="small"
  />
</template>

<script setup>
defineProps({
  type: {
    type: String,
    default: 'primary'
  },
  text: {
    type: String,
    default: '按钮文字'
  },
  icon: {
    type: String,
    default: ''
  },
  color: {
    type: String,
    default: ''
  },
  disabled: {
    type: Boolean,
    default: false
  },
  plain: {
    type: Boolean,
    default: false
  },
  round: {
    type: Boolean,
    default: false
  },
  loading: {
    type: Boolean,
    default: false
  }
})
</script>